#include "head.hpp"

int main()
{
    int fd = open(ipcPath.c_str(), O_WRONLY);
    if(fd < 0)
    {
        perror("open");
        exit(1);
    }
    string message;
    while(true)
    {
        cout << "client[" << getpid() << "]:";
        cin >> message;
        write(fd, message.c_str(), message.size());
        sleep(1);
    }
    close(fd);
    return 0;
}